package com.osi.project.common.enums;

public enum RedisKeyEnum {

    /** 保存 shortUrl 与 长id的对应关系 */
    SHORT_URL_TO_FULL_URL("osi:sgt:sul:url:%s", 30 * 24 * 3600),

    ;

    private String key;
    private Integer time;

    RedisKeyEnum(String key, Integer time) {
        this.key = key;
        this.time = time;
    }

    public String getKey() {
        return key;
    }

    public Integer getTime() {
        return time;
    }
}
